package com.rbac.controller.test.admin;

import com.common.Result;
import com.rbac.pojo.Department;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/employee")
public class adminEmployeeController {


    @GetMapping("/list")
    public Result getAllEmployee(){
        return Result.success("管理员查询全部员工");
    }
    @PostMapping()
    public Result addEmployee(@RequestBody Department department){
        return Result.success("管理员添加员工");
    }
    @PutMapping()
    public Result updateEmployee(@RequestBody Department department){
        return Result.success("管理员修改员工");
    }
    @GetMapping("/{id}")
    public Result getEmployeeById(Integer id){
        return Result.success("管理员根据id查询员工");
    }
    @DeleteMapping("/{id}/delete")
    public Result deleteEmployee(Integer id){
        return Result.success("管理员根据id删除员工");
    }

}